package main

import "fmt"

func main() {
	test1()
	fmt.Println("----------------------")
	test2()
}

func test1() {
	var ages [4]int = [4]int{1, 2, 3, 5}
	var b = ages
	b[0]++
	fmt.Println(ages)
	fmt.Println(b)
}

func test2() {
	var ages []int = []int{1, 2, 3, 5}
	var b = ages
	b[0]++
	fmt.Println(ages)
	fmt.Println(b)
}
